﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using YhmOA.Model;
using System.Data;
using System.Text;

namespace YhmOA.PrintDoc.Bank
{
    public partial class OverseasRemittance : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.rvShow.Reset();
                this.rvShow.LocalReport.LoadReportDefinition(CreateRdlc());
                this.rvShow.LocalReport.DisplayName = "境外汇款申请书";
                this.rvShow.LocalReport.DataSources.Clear();
                this.rvShow.LocalReport.Refresh();
            }
        }

        private MemoryStream CreateRdlc()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("报关单号");
            dt.Columns.Add("报关单币种及总金额");
            dt.Columns.Add("本次核注金额");
            DataRow dr = dt.NewRow();
            dr["报关单号"] = "123456789";
            dr["报关单币种及总金额"] = "EUR" + 10000.ToString("#,###.00");
            dr["本次核注金额"] = "EUR" + 10000.ToString("#,###.00");
            dt.Rows.Add(dr);
            dr = dt.NewRow();
            dr["报关单号"] = "987654321";
            dr["报关单币种及总金额"] = "EUR" + 10000.ToString("#,###.00");
            dr["本次核注金额"] = "EUR" + 10000.ToString("#,###.00");
            dt.Rows.Add(dr);
            dr = dt.NewRow();
            dr["报关单号"] = "123456789";
            dr["报关单币种及总金额"] = "EUR" + 10000.ToString("#,###.00");
            dr["本次核注金额"] = "EUR" + 10000.ToString("#,###.00");
            dt.Rows.Add(dr);
            dr = dt.NewRow();
            dr["报关单号"] = "987654321";
            dr["报关单币种及总金额"] = "EUR" + 10000.ToString("#,###.00");
            dr["本次核注金额"] = "EUR" + 10000.ToString("#,###.00");
            dt.Rows.Add(dr);


            XmlDocument sourceDoc = new XmlDocument();
            string docPath = AppDomain.CurrentDomain.BaseDirectory + "PrintDoc\\Bank\\OverseasRemittance.rdlc";
            sourceDoc.Load(docPath);
            //ReportItems节点
            XmlNode reportItem = sourceDoc.ChildNodes.Item(1).ChildNodes.Item(0).ChildNodes.Item(0);//.ChildNodes.Item(4);
            PrintDoc_Bank_OverseasRemittance info = new PrintDoc_Bank_OverseasRemittance();
            info.CurrencyType = "eur";
            info.LowerAmount = 123456;
            info.ApplicantName = "河南经贸国际运输有限公司";
            info.ApplicantPhone = "0371-6328 0859";
            info.CapitalAmountEn = "SAY EURO ONE HUNDRED TWENTY-THREE THOUSAND FOUR HUNDRED AND FIFTY-SIX ONLY";
            info.Data = DateTime.Now;
            info.ImportCancelAfterVerification = "是";//是：否
            info.LatestShipmentDate = DateTime.Now.AddMonths(2);
            info.PayeeAddress = "收款人地址";
            info.PayeeBankAddress = "收款人开户行地址";
            info.PayeeBankName = "收款人开户行名称";
            info.PayeeCorrespondentBankAddress = "收款人代理行地址";
            info.PayeeCorrespondentBankID = "收款人在代理行的账号";
            info.PayeeCorrespondentBankName = "收款人代理行名称";
            info.PayeeCountry = "美国";
            info.PayeeCountryCode = "123";
            info.PayeeID = "收款人账号";
            info.PayeeName = "收款人名称";
            //info.PaymentProperties = "货到付款";//预付货款：货到付款：退款：其他
            info.PaymentType = "货到付款";//预付货款：货到付款：退款：其他
            info.PoundageBy = "汇款人";//汇款人：收款人：共同
            info.PowerRating = "普通";//普通：加急
            info.PowerType = "电汇";//电汇：信汇：票汇
            info.RemittanceMark = "汇款附言";
            info.SenderAddressEN = "汇款人英文地址";
            info.SenderCustomsRegistrationNumber = "1234567890";
            info.SenderID = "<>'&";
            info.SenderName = "汇款人名称";
            info.SenderNameEN = "汇款人英文名称";
            info.SenderOrganizationCode = "123456789";
            info.TransactionCode = "1   2  3   4   5  6";
            info.TransactionMark = "交易附言";
            info.TransferProperties = "对公";//对公：对私
            info.ContractNo = "11DE42HJ01SW01SD,11DK01FM01RSP01AD,11DK01FM01RSP01AD";

            #region 信汇
            XmlNode txt_信汇 = reportItem.ChildNodes.Item(0);
            XmlNode value_信汇 = txt_信汇.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_信汇.InnerText = info.PowerType == "信汇" ? "√" : " ";
            #endregion
            
            #region 票汇
            XmlNode txt_票汇 = reportItem.ChildNodes.Item(1);
            XmlNode value_票汇 = txt_票汇.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_票汇.InnerText = info.PowerType == "票汇" ? "√" : " ";
            #endregion
            
            #region 加急
            XmlNode txt_加急 = reportItem.ChildNodes.Item(2);
            XmlNode value_加急 = txt_加急.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_加急.InnerText = info.PowerRating == "加急" ? "√" : " ";
            #endregion
            
            #region 普通
            XmlNode txt_普通 = reportItem.ChildNodes.Item(3);
            XmlNode value_普通 = txt_普通.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_普通.InnerText = info.PowerRating == "普通" ? "√" : " ";
            #endregion
            
            #region 日期
            XmlNode txt_日期 = reportItem.ChildNodes.Item(4);
            XmlNode value_日期 = txt_日期.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_日期.InnerText = info.Data.ToString("yyyy-MM-dd");
            #endregion
            
            #region 电汇
            XmlNode txt_电汇 = reportItem.ChildNodes.Item(5);
            XmlNode value_电汇 = txt_电汇.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_电汇.InnerText = info.PowerType == "电汇" ? "√" : " ";
            #endregion
           
            #region 金额大写
            XmlNode txt_金额大写 = reportItem.ChildNodes.Item(6);
            XmlNode value_金额大写 = txt_金额大写.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_金额大写.InnerText = info.CapitalAmountEn;
            #endregion
            
            #region 小写金额
            XmlNode txt_小写金额 = reportItem.ChildNodes.Item(7);
            XmlNode value_小写金额 = txt_小写金额.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_小写金额.InnerText = info.CurrencyType.ToUpper() + info.LowerAmount.ToString("#,###.00");
            #endregion
            
            #region 现汇金额
            XmlNode txt_现汇金额 = reportItem.ChildNodes.Item(8);
            XmlNode value_现汇金额 = txt_现汇金额.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_现汇金额.InnerText = info.CurrencyType.ToUpper() + info.LowerAmount.ToString("#,###.00");
            #endregion
            
            #region 购汇金额
            XmlNode txt_购汇金额 = reportItem.ChildNodes.Item(9);
            XmlNode value_购汇金额 = txt_购汇金额.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_购汇金额.InnerText = info.CurrencyType.ToUpper() + info.LowerAmount.ToString("#,###.00");
            #endregion
            
            #region 现汇账号
            XmlNode txt_现汇账号 = reportItem.ChildNodes.Item(10);
            XmlNode value_现汇账号 = txt_现汇账号.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_现汇账号.InnerText = info.SenderID;
            #endregion

            #region 购汇账号
            XmlNode txt_购汇账号 = reportItem.ChildNodes.Item(11);
            XmlNode value_购汇账号 = txt_购汇账号.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_购汇账号.InnerText = info.SenderID;
            #endregion

            #region 汇款人英文名称
            XmlNode txt_汇款人英文名称 = reportItem.ChildNodes.Item(12);
            XmlNode value_汇款人英文名称 = txt_汇款人英文名称.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_汇款人英文名称.InnerText = info.SenderNameEN;
            #endregion

            #region 汇款人英文地址
            XmlNode txt_汇款人英文地址 = reportItem.ChildNodes.Item(13);
            XmlNode value_汇款人英文地址 = txt_汇款人英文地址.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_汇款人英文地址.InnerText = info.SenderAddressEN;
            #endregion

            #region 对公
            XmlNode txt_对公 = reportItem.ChildNodes.Item(14);
            XmlNode value_对公 = txt_对公.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_对公.InnerText = info.TransferProperties == "对公" ? "√" : " ";
            #endregion

            #region 收款人代理行名称
            XmlNode txt_收款人代理行名称 = reportItem.ChildNodes.Item(15);
            XmlNode value_收款人代理行名称 = txt_收款人代理行名称.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人代理行名称.InnerText = info.PayeeCorrespondentBankName;
            #endregion

            #region 收款人代理行地址
            XmlNode txt_收款人代理行地址 = reportItem.ChildNodes.Item(16);
            XmlNode value_收款人代理行地址 = txt_收款人代理行地址.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人代理行地址.InnerText = info.PayeeCorrespondentBankAddress;
            #endregion

            #region 收款人开户行名称
            XmlNode txt_收款人开户行名称 = reportItem.ChildNodes.Item(17);
            XmlNode value_收款人开户行名称 = txt_收款人开户行名称.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人开户行名称.InnerText = info.PayeeBankName;
            #endregion

            #region 收款人开户行地址
            XmlNode txt_收款人开户行地址 = reportItem.ChildNodes.Item(18);
            XmlNode value_收款人开户行地址 = txt_收款人开户行地址.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人开户行地址.InnerText = info.PayeeBankAddress;
            #endregion

            #region 收款人开户银行在其代理行账号
            XmlNode txt_收款人开户银行在其代理行账号 = reportItem.ChildNodes.Item(19);
            XmlNode value_收款人开户银行在其代理行账号 = txt_收款人开户银行在其代理行账号.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人开户银行在其代理行账号.InnerText = info.PayeeCorrespondentBankID;
            #endregion

            #region 收款人账号
            XmlNode txt_收款人账号 = reportItem.ChildNodes.Item(20);
            XmlNode value_收款人账号 = txt_收款人账号.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人账号.InnerText = info.PayeeID;
            #endregion

            #region 收款人名称
            XmlNode txt_收款人名称 = reportItem.ChildNodes.Item(21);
            XmlNode value_收款人名称 = txt_收款人名称.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人名称.InnerText = info.PayeeName;
            #endregion

            #region 收款人地址
            XmlNode txt_收款人地址 = reportItem.ChildNodes.Item(22);
            XmlNode value_收款人地址 = txt_收款人地址.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人地址.InnerText = info.PayeeAddress;
            #endregion

            #region 汇款附言
            XmlNode txt_汇款附言 = reportItem.ChildNodes.Item(23);
            XmlNode value_汇款附言 = txt_汇款附言.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_汇款附言.InnerText = info.RemittanceMark;
            #endregion

            #region 国内外费用承担_收款人
            XmlNode txt_国内外费用承担_收款人 = reportItem.ChildNodes.Item(24);
            XmlNode value_国内外费用承担_收款人 = txt_国内外费用承担_收款人.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_国内外费用承担_收款人.InnerText = info.PoundageBy == "收款人" ? "√" : " ";
            #endregion

            #region 国内外费用承担_共同
            XmlNode txt_国内外费用承担_共同 = reportItem.ChildNodes.Item(25);
            XmlNode value_国内外费用承担_共同 = txt_国内外费用承担_共同.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_国内外费用承担_共同.InnerText = info.PoundageBy == "共同" ? "√" : " ";
            #endregion

            #region 国内外费用承担_汇款人
            XmlNode txt_国内外费用承担_汇款人 = reportItem.ChildNodes.Item(26);
            XmlNode value_国内外费用承担_汇款人 = txt_国内外费用承担_汇款人.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_国内外费用承担_汇款人.InnerText = info.PoundageBy == "汇款人" ? "√" : " ";
            #endregion

            #region 付款类型_其他
            XmlNode txt_付款类型_其他 = reportItem.ChildNodes.Item(27);
            XmlNode value_付款类型_其他 = txt_付款类型_其他.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_付款类型_其他.InnerText = info.PaymentType == "其他" ? "√" : " ";
            #endregion

            #region 付款类型_退款
            XmlNode txt_付款类型_退款 = reportItem.ChildNodes.Item(28);
            XmlNode value_付款类型_退款 = txt_付款类型_退款.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_付款类型_退款.InnerText = info.PaymentType == "退款" ? "√" : " ";
            #endregion

            #region 是否为进口核销_是
            XmlNode txt_是否为进口核销_是 = reportItem.ChildNodes.Item(29);
            XmlNode value_是否为进口核销_是 = txt_是否为进口核销_是.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_是否为进口核销_是.InnerText = info.ImportCancelAfterVerification == "是" ? "√" : " ";
            #endregion

            #region 是否为进口核销_否
            XmlNode txt_是否为进口核销_否 = reportItem.ChildNodes.Item(30);
            XmlNode value_是否为进口核销_否 = txt_是否为进口核销_否.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_是否为进口核销_否.InnerText = info.ImportCancelAfterVerification == "否" ? "√" : " ";
            #endregion

            #region 付款类型_货到付款
            XmlNode txt_付款类型_货到付款 = reportItem.ChildNodes.Item(31);
            XmlNode value_付款类型_货到付款 = txt_付款类型_货到付款.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_付款类型_货到付款.InnerText = info.PaymentType == "货到付款" ? "√" : " ";
            #endregion

            #region 付款类型_预付货款
            XmlNode txt_付款类型_预付货款 = reportItem.ChildNodes.Item(32);
            XmlNode value_付款类型_预付货款 = txt_付款类型_预付货款.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_付款类型_预付货款.InnerText = info.PaymentType == "预付货款" ? "√" : " ";
            #endregion

            #region 最迟装运期
            XmlNode txt_最迟装运期 = reportItem.ChildNodes.Item(33);
            XmlNode value_最迟装运期 = txt_最迟装运期.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_最迟装运期.InnerText = info.LatestShipmentDate.ToString("yyyy-MM-dd");
            #endregion

            #region 收款人常驻国家
            XmlNode txt_收款人常驻国家 = reportItem.ChildNodes.Item(34);
            XmlNode value_收款人常驻国家 = txt_收款人常驻国家.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人常驻国家.InnerText = info.PayeeCountry;
            #endregion

            #region 收款人常驻国家代码
            XmlNode txt_收款人常驻国家代码 = reportItem.ChildNodes.Item(35);
            XmlNode value_收款人常驻国家代码 = txt_收款人常驻国家代码.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_收款人常驻国家代码.InnerText = info.PayeeCountryCode;
            #endregion

            #region 交易编码
            XmlNode txt_交易编码 = reportItem.ChildNodes.Item(36);
            XmlNode value_交易编码 = txt_交易编码.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_交易编码.InnerText = info.TransactionCode;
            #endregion

            #region 相应币种及金额
            XmlNode txt_相应币种及金额 = reportItem.ChildNodes.Item(37);
            XmlNode value_相应币种及金额 = txt_相应币种及金额.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_相应币种及金额.InnerText = info.CurrencyType.ToUpper() + info.LowerAmount.ToString("#,###.00");
            #endregion

            #region 交易附言
            XmlNode txt_交易附言 = reportItem.ChildNodes.Item(38);
            XmlNode value_交易附言 = txt_交易附言.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_交易附言.InnerText = info.TransactionMark;
            #endregion

            #region 合同号
            XmlNode txt_合同号 = reportItem.ChildNodes.Item(39);
            XmlNode value_合同号 = txt_合同号.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_合同号.InnerText = info.ContractNo.Replace(",", " ");
            #endregion

            #region 报关单经营单位代码1
            XmlNode txt_报关单经营单位代码1 = reportItem.ChildNodes.Item(40);
            XmlNode value_报关单经营单位代码1 = txt_报关单经营单位代码1.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码1.InnerText = info.SenderCustomsRegistrationNumber.Substring(0, 1);
            #endregion

            #region 报关单经营单位代码2
            XmlNode txt_报关单经营单位代码2 = reportItem.ChildNodes.Item(41);
            XmlNode value_报关单经营单位代码2 = txt_报关单经营单位代码2.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码2.InnerText = info.SenderCustomsRegistrationNumber.Substring(1, 1);
            #endregion

            #region 报关单经营单位代码3
            XmlNode txt_报关单经营单位代码3 = reportItem.ChildNodes.Item(42);
            XmlNode value_报关单经营单位代码3 = txt_报关单经营单位代码3.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码3.InnerText = info.SenderCustomsRegistrationNumber.Substring(2, 1);
            #endregion

            #region 报关单经营单位代码4
            XmlNode txt_报关单经营单位代码4 = reportItem.ChildNodes.Item(43);
            XmlNode value_报关单经营单位代码4 = txt_报关单经营单位代码4.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码4.InnerText = info.SenderCustomsRegistrationNumber.Substring(3, 1);
            #endregion

            #region 报关单经营单位代码5
            XmlNode txt_报关单经营单位代码5 = reportItem.ChildNodes.Item(44);
            XmlNode value_报关单经营单位代码5 = txt_报关单经营单位代码5.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码5.InnerText = info.SenderCustomsRegistrationNumber.Substring(4, 1);
            #endregion

            #region 报关单经营单位代码6
            XmlNode txt_报关单经营单位代码6 = reportItem.ChildNodes.Item(45);
            XmlNode value_报关单经营单位代码6 = txt_报关单经营单位代码6.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码6.InnerText = info.SenderCustomsRegistrationNumber.Substring(5, 1);
            #endregion

            #region 报关单经营单位代码7
            XmlNode txt_报关单经营单位代码7 = reportItem.ChildNodes.Item(46);
            XmlNode value_报关单经营单位代码7 = txt_报关单经营单位代码7.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码7.InnerText = info.SenderCustomsRegistrationNumber.Substring(6, 1);
            #endregion

            #region 报关单经营单位代码8
            XmlNode txt_报关单经营单位代码8 = reportItem.ChildNodes.Item(47);
            XmlNode value_报关单经营单位代码8 = txt_报关单经营单位代码8.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码8.InnerText = info.SenderCustomsRegistrationNumber.Substring(7, 1);
            #endregion

            #region 报关单经营单位代码9
            XmlNode txt_报关单经营单位代码9 = reportItem.ChildNodes.Item(48);
            XmlNode value_报关单经营单位代码9 = txt_报关单经营单位代码9.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码9.InnerText = info.SenderCustomsRegistrationNumber.Substring(8, 1);
            #endregion

            #region 报关单经营单位代码10
            XmlNode txt_报关单经营单位代码10 = reportItem.ChildNodes.Item(49);
            XmlNode value_报关单经营单位代码10 = txt_报关单经营单位代码10.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_报关单经营单位代码10.InnerText = info.SenderCustomsRegistrationNumber.Substring(9, 1);
            #endregion

            #region 报关单信息

            #region 第一条报关单信息
            if (dt != null && dt.Rows.Count > 0)
            {
                #region 报关单号一
                XmlNode txt_报关单号一 = reportItem.ChildNodes.Item(50);
                XmlNode value_报关单号一 = txt_报关单号一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单号一.InnerText = dt.Rows[0]["报关单号"].ToString();
                #endregion

                #region 报关单币种及总金额一
                XmlNode txt_报关单币种及总金额一 = reportItem.ChildNodes.Item(53);
                XmlNode value_报关单币种及总金额一 = txt_报关单币种及总金额一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单币种及总金额一.InnerText = dt.Rows[0]["报关单币种及总金额"].ToString();
                #endregion

                #region 本次核注金额一
                XmlNode txt_本次核注金额一 = reportItem.ChildNodes.Item(54);
                XmlNode value_本次核注金额一 = txt_本次核注金额一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_本次核注金额一.InnerText = dt.Rows[0]["本次核注金额"].ToString();
                #endregion
            }
            else
            {
                #region 报关单号一
                XmlNode txt_报关单号一 = reportItem.ChildNodes.Item(50);
                XmlNode value_报关单号一 = txt_报关单号一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单号一.InnerText = " ";
                #endregion

                #region 报关单币种及总金额一
                XmlNode txt_报关单币种及总金额一 = reportItem.ChildNodes.Item(53);
                XmlNode value_报关单币种及总金额一 = txt_报关单币种及总金额一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单币种及总金额一.InnerText = " ";
                #endregion

                #region 本次核注金额一
                XmlNode txt_本次核注金额一 = reportItem.ChildNodes.Item(54);
                XmlNode value_本次核注金额一 = txt_本次核注金额一.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_本次核注金额一.InnerText = " ";
                #endregion
            }
            #endregion

            #region 第二条报关单信息
            if (dt != null && dt.Rows.Count > 1)
            {
                #region 报关单号二
                XmlNode txt_报关单号二 = reportItem.ChildNodes.Item(51);
                XmlNode value_报关单号二 = txt_报关单号二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单号二.InnerText = dt.Rows[1]["报关单号"].ToString();
                #endregion

                #region 报关单币种及总金额二
                XmlNode txt_报关单币种及总金额二 = reportItem.ChildNodes.Item(52);
                XmlNode value_报关单币种及总金额二 = txt_报关单币种及总金额二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单币种及总金额二.InnerText = dt.Rows[1]["报关单币种及总金额"].ToString();
                #endregion

                #region 本次核注金额二
                XmlNode txt_本次核注金额二 = reportItem.ChildNodes.Item(55);
                XmlNode value_本次核注金额二 = txt_本次核注金额二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_本次核注金额二.InnerText = dt.Rows[1]["本次核注金额"].ToString();
                #endregion
            }
            else
            {
                #region 报关单号二
                XmlNode txt_报关单号二 = reportItem.ChildNodes.Item(51);
                XmlNode value_报关单号二 = txt_报关单号二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单号二.InnerText = " ";
                #endregion

                #region 报关单币种及总金额二
                XmlNode txt_报关单币种及总金额二 = reportItem.ChildNodes.Item(52);
                XmlNode value_报关单币种及总金额二 = txt_报关单币种及总金额二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_报关单币种及总金额二.InnerText = " ";
                #endregion

                #region 本次核注金额二
                XmlNode txt_本次核注金额二 = reportItem.ChildNodes.Item(55);
                XmlNode value_本次核注金额二 = txt_本次核注金额二.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
                value_本次核注金额二.InnerText = " ";
                #endregion
            }
            #endregion

            #region 两条以上的第二页上显示打印在一张白纸上
            if (dt != null && dt.Rows.Count > 2)
            {
                //最外层的----Tablix
                XmlElement tableInfo = sourceDoc.CreateElement("Tablix", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableInfo.SetAttribute("Name", "table_Info");

                #region 节点----TablixBody
                //第二层----TablixBody
                XmlElement tableTablixBody = sourceDoc.CreateElement("TablixBody", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableInfo.AppendChild(tableTablixBody);

                #region 节点----TablixColumns
                //第三层----TablixBody---tablixBodyTablixColumns
                XmlElement tbtc = sourceDoc.CreateElement("TablixColumns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableTablixBody.AppendChild(tbtc);
                //第四层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn1
                XmlElement tbtctc1 = sourceDoc.CreateElement("TablixColumn", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtc.AppendChild(tbtctc1);
                //第五层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn1----tablixColumnWidth1
                XmlElement tbtctcw1 = sourceDoc.CreateElement("Width", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtctcw1.InnerText = "1.65289in";
                tbtctc1.AppendChild(tbtctcw1);
                //第四层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn2
                XmlElement tbtctc2 = sourceDoc.CreateElement("TablixColumn", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtc.AppendChild(tbtctc2);
                //第五层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn1----tablixColumnWidth2
                XmlElement tbtctcw2 = sourceDoc.CreateElement("Width", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtctcw2.InnerText = "2.13356in";
                tbtctc2.AppendChild(tbtctcw2);
                //第四层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn3
                XmlElement tbtctc3 = sourceDoc.CreateElement("TablixColumn", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtc.AppendChild(tbtctc3);
                //第五层----TablixBody---tablixBodyTablixColumns----tablixColumnsTablixColumn1----tablixColumnWidth3
                XmlElement tbtctcw3 = sourceDoc.CreateElement("Width", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtctcw3.InnerText = "2.11272in";
                tbtctc3.AppendChild(tbtctcw3);
                #endregion

                #region 节点----TablixRows
                //第三层----TablixBody---tablixBodyTablixRows
                XmlElement tbtr = sourceDoc.CreateElement("TablixRows", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableTablixBody.AppendChild(tbtr);

                #region 表头
                //第四层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1
                XmlElement tbtrtr1 = sourceDoc.CreateElement("TablixRow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtr.AppendChild(tbtrtr1);
                //第五层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowHeight1
                XmlElement tbtrtrh1 = sourceDoc.CreateElement("Height", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrh1.InnerText = "0.23622in";
                tbtrtr1.AppendChild(tbtrtrh1);
                //第五层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1
                XmlElement tbtrtrhtc1 = sourceDoc.CreateElement("TablixCells", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtr1.AppendChild(tbtrtrhtc1);
                //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                XmlElement tbtrtrhtctc1 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtc1.AppendChild(tbtrtrhtctc1);
                //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1
                XmlElement tbtrtrhtctccc1 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctc1.AppendChild(tbtrtrhtctccc1);
                //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox
                XmlElement tbtrtrhtctccctb1 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb1.SetAttribute("Name", "txt_报关单号_title");
                tbtrtrhtctccc1.AppendChild(tbtrtrhtctccctb1);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxCanGrow1
                XmlElement tbtrtrhtctccctbcg1 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbcg1.InnerText = "true";
                tbtrtrhtctccctb1.AppendChild(tbtrtrhtctccctbcg1);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxKeepTogether1
                XmlElement tbtrtrhtctccctbkt1 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbkt1.InnerText = "true";
                tbtrtrhtctccctb1.AppendChild(tbtrtrhtctccctbkt1);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1
                XmlElement tbtrtrhtctccctbp1 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb1.AppendChild(tbtrtrhtctccctbp1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1
                XmlElement tbtrtrhtctccctbpp1 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbp1.AppendChild(tbtrtrhtctccctbpp1);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns
                XmlElement tbtrtrhtctccctbpptr1 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp1.AppendChild(tbtrtrhtctccctbpptr1);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1
                XmlElement tbtrtrhtctccctbpptrtr1 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptr1.AppendChild(tbtrtrhtctccctbpptrtr1);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1--textRunValue
                XmlElement tbtrtrhtctccctbpptrtrv1 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtrv1.InnerText = "报关单号";
                tbtrtrhtctccctbpptrtr1.AppendChild(tbtrtrhtctccctbpptrtrv1);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1--textRunStyle
                XmlElement tbtrtrhtctccctbpptrtrs1 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtr1.AppendChild(tbtrtrhtctccctbpptrtrs1);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphStyle
                XmlElement tbtrtrhtctccctbpps1 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp1.AppendChild(tbtrtrhtctccctbpps1);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphStyle--styleTextAlign
                XmlElement tbtrtrhtctccctbppsta1 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbppsta1.InnerText = "Center";
                tbtrtrhtctccctbpps1.AppendChild(tbtrtrhtctccctbppsta1);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1
                XmlElement tbtrtrhtctccctbs1 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb1.AppendChild(tbtrtrhtctccctbs1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder
                XmlElement tbtrtrhtctccctbsb1 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbsb1);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder--borderColor
                XmlElement tbtrtrhtctccctbsbc1 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbc1.InnerText = "LightGrey";
                tbtrtrhtctccctbsb1.AppendChild(tbtrtrhtctccctbsbc1);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder--borderStyle
                XmlElement tbtrtrhtctccctbsbs1 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbs1.InnerText = "Solid";
                tbtrtrhtctccctbsb1.AppendChild(tbtrtrhtctccctbsbs1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleVerticalAlign
                XmlElement tbtrtrhtctccctbsva1 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsva1.InnerText = "Middle";
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbsva1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingLeft
                XmlElement tbtrtrhtctccctbspl1 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspl1.InnerText = "0cm";
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbspl1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingRight
                XmlElement tbtrtrhtctccctbspr1 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspr1.InnerText = "0cm";
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbspr1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingTop
                XmlElement tbtrtrhtctccctbspt1 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspt1.InnerText = "0cm";
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbspt1);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingBottom
                XmlElement tbtrtrhtctccctbspb1 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspb1.InnerText = "0cm";
                tbtrtrhtctccctbs1.AppendChild(tbtrtrhtctccctbspb1);
                //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                XmlElement tbtrtrhtctc2 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtc1.AppendChild(tbtrtrhtctc2);
                //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2
                XmlElement tbtrtrhtctccc2 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctc2.AppendChild(tbtrtrhtctccc2);
                //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2
                XmlElement tbtrtrhtctccctb2 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb2.SetAttribute("Name", "txt_报关单币种及总金额_title");
                tbtrtrhtctccc2.AppendChild(tbtrtrhtctccctb2);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxCanGrow2
                XmlElement tbtrtrhtctccctbcg2 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbcg2.InnerText = "true";
                tbtrtrhtctccctb2.AppendChild(tbtrtrhtctccctbcg2);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxKeepTogether2
                XmlElement tbtrtrhtctccctbkt2 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbkt2.InnerText = "true";
                tbtrtrhtctccctb2.AppendChild(tbtrtrhtctccctbkt2);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2
                XmlElement tbtrtrhtctccctbp2 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb2.AppendChild(tbtrtrhtctccctbp2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2
                XmlElement tbtrtrhtctccctbpp2 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbp2.AppendChild(tbtrtrhtctccctbpp2);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2
                XmlElement tbtrtrhtctccctbpptr2 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp2.AppendChild(tbtrtrhtctccctbpptr2);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2
                XmlElement tbtrtrhtctccctbpptrtr2 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptr2.AppendChild(tbtrtrhtctccctbpptrtr2);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2--textRunValue2
                XmlElement tbtrtrhtctccctbpptrtrv2 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtrv2.InnerText = "报关单币种及总金额";
                tbtrtrhtctccctbpptrtr2.AppendChild(tbtrtrhtctccctbpptrtrv2);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2--textRunStyle2
                XmlElement tbtrtrhtctccctbpptrtrs2 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtr2.AppendChild(tbtrtrhtctccctbpptrtrs2);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphStyle2
                XmlElement tbtrtrhtctccctbpps2 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp2.AppendChild(tbtrtrhtctccctbpps2);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphStyle2--styleTextAlign2
                XmlElement tbtrtrhtctccctbppsta2 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbppsta2.InnerText = "Center";
                tbtrtrhtctccctbpps2.AppendChild(tbtrtrhtctccctbppsta2);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2
                XmlElement tbtrtrhtctccctbs2 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb2.AppendChild(tbtrtrhtctccctbs2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2
                XmlElement tbtrtrhtctccctbsb2 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbsb2);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2--borderColor2
                XmlElement tbtrtrhtctccctbsbc2 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbc2.InnerText = "LightGrey";
                tbtrtrhtctccctbsb2.AppendChild(tbtrtrhtctccctbsbc2);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2--borderStyle2
                XmlElement tbtrtrhtctccctbsbs2 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbs2.InnerText = "Solid";
                tbtrtrhtctccctbsb2.AppendChild(tbtrtrhtctccctbsbs2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleVerticalAlign2
                XmlElement tbtrtrhtctccctbsva2 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsva2.InnerText = "Middle";
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbsva2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingLeft2
                XmlElement tbtrtrhtctccctbspl2 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspl2.InnerText = "0cm";
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbspl2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingRight2
                XmlElement tbtrtrhtctccctbspr2 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspr2.InnerText = "0cm";
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbspr2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingTop2
                XmlElement tbtrtrhtctccctbspt2 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspt2.InnerText = "0cm";
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbspt2);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingBottom2
                XmlElement tbtrtrhtctccctbspb2 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspb2.InnerText = "0cm";
                tbtrtrhtctccctbs2.AppendChild(tbtrtrhtctccctbspb2);
                //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                XmlElement tbtrtrhtctc3 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtc1.AppendChild(tbtrtrhtctc3);


                //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3
                XmlElement tbtrtrhtctccc3 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctc3.AppendChild(tbtrtrhtctccc3);
                //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3
                XmlElement tbtrtrhtctccctb3 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb3.SetAttribute("Name", "txt_本次核注金额_title");
                tbtrtrhtctccc3.AppendChild(tbtrtrhtctccctb3);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxCanGrow3
                XmlElement tbtrtrhtctccctbcg3 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbcg3.InnerText = "true";
                tbtrtrhtctccctb3.AppendChild(tbtrtrhtctccctbcg3);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxKeepTogether3
                XmlElement tbtrtrhtctccctbkt3 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbkt3.InnerText = "true";
                tbtrtrhtctccctb3.AppendChild(tbtrtrhtctccctbkt3);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3
                XmlElement tbtrtrhtctccctbp3 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb3.AppendChild(tbtrtrhtctccctbp3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3
                XmlElement tbtrtrhtctccctbpp3 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbp3.AppendChild(tbtrtrhtctccctbpp3);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphTextRuns3
                XmlElement tbtrtrhtctccctbpptr3 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp3.AppendChild(tbtrtrhtctccctbpptr3);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphTextRuns3--textRunsTextRun3
                XmlElement tbtrtrhtctccctbpptrtr3 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptr3.AppendChild(tbtrtrhtctccctbpptrtr3);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphTextRuns3--textRunsTextRun3--textRunValue3
                XmlElement tbtrtrhtctccctbpptrtrv3 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtrv3.InnerText = "本次核注金额";
                tbtrtrhtctccctbpptrtr3.AppendChild(tbtrtrhtctccctbpptrtrv3);
                //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphTextRuns3--textRunsTextRun3--textRunStyle3
                XmlElement tbtrtrhtctccctbpptrtrs3 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpptrtr3.AppendChild(tbtrtrhtctccctbpptrtrs3);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphStyle3
                XmlElement tbtrtrhtctccctbpps3 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbpp3.AppendChild(tbtrtrhtctccctbpps3);
                //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxParagraphs3--paragraphsParagraph3--paragraphStyle3--styleTextAlign3
                XmlElement tbtrtrhtctccctbppsta3 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbppsta3.InnerText = "Center";
                tbtrtrhtctccctbpps3.AppendChild(tbtrtrhtctccctbppsta3);
                //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3
                XmlElement tbtrtrhtctccctbs3 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctb3.AppendChild(tbtrtrhtctccctbs3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----styleBorder3
                XmlElement tbtrtrhtctccctbsb3 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbsb3);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----styleBorder3--borderColor3
                XmlElement tbtrtrhtctccctbsbc3 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbc3.InnerText = "LightGrey";
                tbtrtrhtctccctbsb3.AppendChild(tbtrtrhtctccctbsbc3);
                //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----styleBorder3--borderStyle3
                XmlElement tbtrtrhtctccctbsbs3 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsbs3.InnerText = "Solid";
                tbtrtrhtctccctbsb3.AppendChild(tbtrtrhtctccctbsbs3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----styleVerticalAlign3
                XmlElement tbtrtrhtctccctbsva3 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbsva3.InnerText = "Middle";
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbsva3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----stylePaddingLeft3
                XmlElement tbtrtrhtctccctbspl3 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspl3.InnerText = "0cm";
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbspl3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----stylePaddingRight3
                XmlElement tbtrtrhtctccctbspr3 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspr3.InnerText = "0cm";
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbspr3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----stylePaddingTop3
                XmlElement tbtrtrhtctccctbspt3 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspt3.InnerText = "0cm";
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbspt3);
                //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                //--tablixCellCellContents3--cellContentsTextbox3--textboxStyle3----stylePaddingBottom3
                XmlElement tbtrtrhtctccctbspb3 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tbtrtrhtctccctbspb3.InnerText = "0cm";
                tbtrtrhtctccctbs3.AppendChild(tbtrtrhtctccctbspb3);
                #endregion

                #region 表体
                for (int i = 2; i < dt.Rows.Count; i++)
			    {
                    //第四层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1
                    XmlElement tbtrtr11 = sourceDoc.CreateElement("TablixRow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtr.AppendChild(tbtrtr11);
                    //第五层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowHeight1
                    XmlElement tbtrtrh11 = sourceDoc.CreateElement("Height", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrh11.InnerText = "0.23622in";
                    tbtrtr11.AppendChild(tbtrtrh11);
                    //第五层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1
                    XmlElement tbtrtrhtc11 = sourceDoc.CreateElement("TablixCells", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtr11.AppendChild(tbtrtrhtc11);
                    //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    XmlElement tbtrtrhtctc11 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtc11.AppendChild(tbtrtrhtctc11);
                    //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1
                    XmlElement tbtrtrhtctccc11 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctc11.AppendChild(tbtrtrhtctccc11);
                    //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox
                    XmlElement tbtrtrhtctccctb11 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb11.SetAttribute("Name", "txt_报关单号_table"+(i-1));
                    tbtrtrhtctccc11.AppendChild(tbtrtrhtctccctb11);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxCanGrow1
                    XmlElement tbtrtrhtctccctbcg11 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbcg11.InnerText = "true";
                    tbtrtrhtctccctb11.AppendChild(tbtrtrhtctccctbcg11);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxKeepTogether1
                    XmlElement tbtrtrhtctccctbkt11 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbkt11.InnerText = "true";
                    tbtrtrhtctccctb11.AppendChild(tbtrtrhtctccctbkt11);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1
                    XmlElement tbtrtrhtctccctbp11 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb11.AppendChild(tbtrtrhtctccctbp11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1
                    XmlElement tbtrtrhtctccctbpp11 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbp11.AppendChild(tbtrtrhtctccctbpp11);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns
                    XmlElement tbtrtrhtctccctbpptr11 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp11.AppendChild(tbtrtrhtctccctbpptr11);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1
                    XmlElement tbtrtrhtctccctbpptrtr11 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptr11.AppendChild(tbtrtrhtctccctbpptrtr11);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1--textRunValue
                    XmlElement tbtrtrhtctccctbpptrtrv11 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtrv11.InnerText = dt.Rows[i]["报关单号"].ToString();
                    tbtrtrhtctccctbpptrtr11.AppendChild(tbtrtrhtctccctbpptrtrv11);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphTextRuns--textRunsTextRun1--textRunStyle
                    XmlElement tbtrtrhtctccctbpptrtrs11 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtr11.AppendChild(tbtrtrhtctccctbpptrtrs11);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphStyle
                    XmlElement tbtrtrhtctccctbpps11 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp11.AppendChild(tbtrtrhtctccctbpps11);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxParagraphs1--paragraphsParagraph1--paragraphStyle--styleTextAlign
                    XmlElement tbtrtrhtctccctbppsta11 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbppsta11.InnerText = "Center";
                    tbtrtrhtctccctbpps11.AppendChild(tbtrtrhtctccctbppsta11);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1
                    XmlElement tbtrtrhtctccctbs11 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb11.AppendChild(tbtrtrhtctccctbs11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder
                    XmlElement tbtrtrhtctccctbsb11 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbsb11);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder--borderColor
                    XmlElement tbtrtrhtctccctbsbc11 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbc11.InnerText = "LightGrey";
                    tbtrtrhtctccctbsb11.AppendChild(tbtrtrhtctccctbsbc11);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleBorder--borderStyle
                    XmlElement tbtrtrhtctccctbsbs11 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbs11.InnerText = "Solid";
                    tbtrtrhtctccctbsb11.AppendChild(tbtrtrhtctccctbsbs11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----styleVerticalAlign
                    XmlElement tbtrtrhtctccctbsva11 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsva11.InnerText = "Middle";
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbsva11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingLeft
                    XmlElement tbtrtrhtctccctbspl11 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspl11.InnerText = "0cm";
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbspl11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingRight
                    XmlElement tbtrtrhtctccctbspr11 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspr11.InnerText = "0cm";
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbspr11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingTop
                    XmlElement tbtrtrhtctccctbspt11 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspt11.InnerText = "0cm";
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbspt11);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell1
                    //--tablixCellCellContents1--cellContentsTextbox1--textboxStyle1----stylePaddingBottom
                    XmlElement tbtrtrhtctccctbspb11 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspb11.InnerText = "0cm";
                    tbtrtrhtctccctbs11.AppendChild(tbtrtrhtctccctbspb11);
                    //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    XmlElement tbtrtrhtctc22 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtc11.AppendChild(tbtrtrhtctc22);
                    //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2
                    XmlElement tbtrtrhtctccc22 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctc22.AppendChild(tbtrtrhtctccc22);
                    //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2
                    XmlElement tbtrtrhtctccctb22 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb22.SetAttribute("Name", "txt_报关单币种及总金额_table"+(i-1));
                    tbtrtrhtctccc22.AppendChild(tbtrtrhtctccctb22);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxCanGrow2
                    XmlElement tbtrtrhtctccctbcg22 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbcg22.InnerText = "true";
                    tbtrtrhtctccctb22.AppendChild(tbtrtrhtctccctbcg22);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxKeepTogether2
                    XmlElement tbtrtrhtctccctbkt22 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbkt22.InnerText = "true";
                    tbtrtrhtctccctb22.AppendChild(tbtrtrhtctccctbkt22);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2
                    XmlElement tbtrtrhtctccctbp22 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb22.AppendChild(tbtrtrhtctccctbp22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2
                    XmlElement tbtrtrhtctccctbpp22 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbp22.AppendChild(tbtrtrhtctccctbpp22);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2
                    XmlElement tbtrtrhtctccctbpptr22 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp22.AppendChild(tbtrtrhtctccctbpptr22);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2
                    XmlElement tbtrtrhtctccctbpptrtr22 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptr22.AppendChild(tbtrtrhtctccctbpptrtr22);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2--textRunValue2
                    XmlElement tbtrtrhtctccctbpptrtrv22 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtrv22.InnerText = dt.Rows[i]["报关单币种及总金额"].ToString();
                    tbtrtrhtctccctbpptrtr22.AppendChild(tbtrtrhtctccctbpptrtrv22);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphTextRuns2--textRunsTextRun2--textRunStyle2
                    XmlElement tbtrtrhtctccctbpptrtrs22 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtr22.AppendChild(tbtrtrhtctccctbpptrtrs22);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphStyle2
                    XmlElement tbtrtrhtctccctbpps22 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp22.AppendChild(tbtrtrhtctccctbpps22);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxParagraphs2--paragraphsParagraph2--paragraphStyle2--styleTextAlign2
                    XmlElement tbtrtrhtctccctbppsta22 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbppsta22.InnerText = "Center";
                    tbtrtrhtctccctbpps22.AppendChild(tbtrtrhtctccctbppsta22);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2
                    XmlElement tbtrtrhtctccctbs22 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb22.AppendChild(tbtrtrhtctccctbs22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2
                    XmlElement tbtrtrhtctccctbsb22 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbsb22);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2--borderColor2
                    XmlElement tbtrtrhtctccctbsbc22 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbc22.InnerText = "LightGrey";
                    tbtrtrhtctccctbsb22.AppendChild(tbtrtrhtctccctbsbc22);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleBorder2--borderStyle2
                    XmlElement tbtrtrhtctccctbsbs22 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbs22.InnerText = "Solid";
                    tbtrtrhtctccctbsb22.AppendChild(tbtrtrhtctccctbsbs22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----styleVerticalAlign2
                    XmlElement tbtrtrhtctccctbsva22 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsva22.InnerText = "Middle";
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbsva22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingLeft2
                    XmlElement tbtrtrhtctccctbspl22 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspl22.InnerText = "0cm";
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbspl22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingRight2
                    XmlElement tbtrtrhtctccctbspr22 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspr22.InnerText = "0cm";
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbspr22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingTop2
                    XmlElement tbtrtrhtctccctbspt22 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspt22.InnerText = "0cm";
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbspt22);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell2
                    //--tablixCellCellContents2--cellContentsTextbox2--textboxStyle2----stylePaddingBottom2
                    XmlElement tbtrtrhtctccctbspb22 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspb22.InnerText = "0cm";
                    tbtrtrhtctccctbs22.AppendChild(tbtrtrhtctccctbspb22);
                    //第六层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                    XmlElement tbtrtrhtctc33 = sourceDoc.CreateElement("TablixCell", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtc11.AppendChild(tbtrtrhtctc33);


                    //第七层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                    //--tablixCellCellContents3
                    XmlElement tbtrtrhtctccc33 = sourceDoc.CreateElement("CellContents", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctc33.AppendChild(tbtrtrhtctccc33);
                    //第八层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                    //--tablixCellCellContents3--cellContentsTextbox3
                    XmlElement tbtrtrhtctccctb33 = sourceDoc.CreateElement("Textbox", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb33.SetAttribute("Name", "txt_本次核注金额_table" + (i - 1));
                    tbtrtrhtctccc33.AppendChild(tbtrtrhtctccctb33);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell3
                    //--tablixCellCellContents3--cellContentsTextbox3--textboxCanGrow3
                    XmlElement tbtrtrhtctccctbcg33 = sourceDoc.CreateElement("CanGrow", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbcg33.InnerText = "true";
                    tbtrtrhtctccctb33.AppendChild(tbtrtrhtctccctbcg33);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxKeepTogether33
                    XmlElement tbtrtrhtctccctbkt33 = sourceDoc.CreateElement("KeepTogether", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbkt33.InnerText = "true";
                    tbtrtrhtctccctb33.AppendChild(tbtrtrhtctccctbkt33);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33
                    XmlElement tbtrtrhtctccctbp33 = sourceDoc.CreateElement("Paragraphs", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb33.AppendChild(tbtrtrhtctccctbp33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33
                    XmlElement tbtrtrhtctccctbpp33 = sourceDoc.CreateElement("Paragraph", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbp33.AppendChild(tbtrtrhtctccctbpp33);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphTextRuns33
                    XmlElement tbtrtrhtctccctbpptr33 = sourceDoc.CreateElement("TextRuns", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp33.AppendChild(tbtrtrhtctccctbpptr33);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphTextRuns33--textRunsTextRun33
                    XmlElement tbtrtrhtctccctbpptrtr33 = sourceDoc.CreateElement("TextRun", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptr33.AppendChild(tbtrtrhtctccctbpptrtr33);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphTextRuns33--textRunsTextRun33--textRunValue33
                    XmlElement tbtrtrhtctccctbpptrtrv33 = sourceDoc.CreateElement("Value", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtrv33.InnerText = dt.Rows[i]["本次核注金额"].ToString();
                    tbtrtrhtctccctbpptrtr33.AppendChild(tbtrtrhtctccctbpptrtrv33);
                    //第十三层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphTextRuns33--textRunsTextRun33--textRunStyle33
                    XmlElement tbtrtrhtctccctbpptrtrs33 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpptrtr33.AppendChild(tbtrtrhtctccctbpptrtrs33);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphStyle33
                    XmlElement tbtrtrhtctccctbpps33 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbpp33.AppendChild(tbtrtrhtctccctbpps33);
                    //第十二层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxParagraphs33--paragraphsParagraph33--paragraphStyle33--styleTextAlign33
                    XmlElement tbtrtrhtctccctbppsta33 = sourceDoc.CreateElement("TextAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbppsta33.InnerText = "Center";
                    tbtrtrhtctccctbpps33.AppendChild(tbtrtrhtctccctbppsta33);
                    //第九层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33
                    XmlElement tbtrtrhtctccctbs33 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctb33.AppendChild(tbtrtrhtctccctbs33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----styleBorder33
                    XmlElement tbtrtrhtctccctbsb33 = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbsb33);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----styleBorder33--borderColor33
                    XmlElement tbtrtrhtctccctbsbc33 = sourceDoc.CreateElement("Color", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbc33.InnerText = "LightGrey";
                    tbtrtrhtctccctbsb33.AppendChild(tbtrtrhtctccctbsbc33);
                    //第十一层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----styleBorder33--borderStyle33
                    XmlElement tbtrtrhtctccctbsbs33 = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsbs33.InnerText = "Solid";
                    tbtrtrhtctccctbsb33.AppendChild(tbtrtrhtctccctbsbs33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----styleVerticalAlign33
                    XmlElement tbtrtrhtctccctbsva33 = sourceDoc.CreateElement("VerticalAlign", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbsva33.InnerText = "Middle";
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbsva33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----stylePaddingLeft33
                    XmlElement tbtrtrhtctccctbspl33 = sourceDoc.CreateElement("PaddingLeft", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspl33.InnerText = "0cm";
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbspl33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----stylePaddingRight33
                    XmlElement tbtrtrhtctccctbspr33 = sourceDoc.CreateElement("PaddingRight", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspr33.InnerText = "0cm";
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbspr33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----stylePaddingTop33
                    XmlElement tbtrtrhtctccctbspt33 = sourceDoc.CreateElement("PaddingTop", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspt33.InnerText = "0cm";
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbspt33);
                    //第十层----TablixBody---tablixBodyTablixRows----ablixRowsTablixRow1--tablixRowTablixCells1---tablixCellsTablixCell33
                    //--tablixCellCellContents33--cellContentsTextbox33--textboxStyle33----stylePaddingBottom33
                    XmlElement tbtrtrhtctccctbspb33 = sourceDoc.CreateElement("PaddingBottom", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                    tbtrtrhtctccctbspb33.InnerText = "0cm";
                    tbtrtrhtctccctbs33.AppendChild(tbtrtrhtctccctbspb33);
                 }
                #endregion
                
                #endregion

                #endregion

                #region 节点-----TablixColumnHierarchy
                //第二层----TablixColumnHierarchy
                XmlElement tableTablixColumnHierarchy = sourceDoc.CreateElement("TablixColumnHierarchy", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableInfo.AppendChild(tableTablixColumnHierarchy);
                //第三层----TablixColumnHierarchy---tablixColumnHierarchyTablixMembers
                XmlElement tablixColumnHierarchyTablixMembers = sourceDoc.CreateElement("TablixMembers", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableTablixColumnHierarchy.AppendChild(tablixColumnHierarchyTablixMembers);
                //第四层----TablixColumnHierarchy---tablixColumnHierarchyTablixMembers----tablixMembersTablixMember1
                XmlElement tchtmtm1 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixColumnHierarchyTablixMembers.AppendChild(tchtmtm1);
                //第四层----TablixColumnHierarchy---tablixColumnHierarchyTablixMembers----tablixMembersTablixMember2
                XmlElement tchtmtm2 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixColumnHierarchyTablixMembers.AppendChild(tchtmtm2);
                //第四层----TablixColumnHierarchy---tablixColumnHierarchyTablixMembers----tablixMembersTablixMember3
                XmlElement tchtmtm3 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixColumnHierarchyTablixMembers.AppendChild(tchtmtm3);
                //第四层----TablixColumnHierarchy---tablixColumnHierarchyTablixMembers----tablixMembersTablixMember4
                XmlElement tchtmtm4 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixColumnHierarchyTablixMembers.AppendChild(tchtmtm4);
                #endregion

                #region 节点-----TablixRowHierarchy
                //第二层----TablixRowHierarchy
                XmlElement tableTablixRowHierarchy = sourceDoc.CreateElement("TablixRowHierarchy", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableInfo.AppendChild(tableTablixRowHierarchy);
                //第三层----TablixRowHierarchy----tablixRowHierarchyTablixMembers
                XmlElement tablixRowHierarchyTablixMembers = sourceDoc.CreateElement("TablixMembers", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableTablixRowHierarchy.AppendChild(tablixRowHierarchyTablixMembers);
                //第四层----TablixRowHierarchy----tablixRowHierarchyTablixMembers--tablixMembersTablixMember1
                XmlElement trhtmtm1 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixRowHierarchyTablixMembers.AppendChild(trhtmtm1);
                //第五层----TablixRowHierarchy----tablixRowHierarchyTablixMembers--tablixMembersTablixMember1--tablixMemberKeepWithGroup
                XmlElement tablixMemberKeepWithGroup = sourceDoc.CreateElement("KeepWithGroup", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixMemberKeepWithGroup.InnerText = "After";
                trhtmtm1.AppendChild(tablixMemberKeepWithGroup);
                //第四层----TablixRowHierarchy----tablixRowHierarchyTablixMembers--tablixMembersTablixMember2
                XmlElement trhtmtm2 = sourceDoc.CreateElement("TablixMember", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixRowHierarchyTablixMembers.AppendChild(trhtmtm2);
                //第五层----TablixRowHierarchy----tablixRowHierarchyTablixMembers--tablixMembersTablixMember2--tablixMemberGroup
                XmlElement tablixMemberGroup = sourceDoc.CreateElement("Group", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tablixMemberGroup.SetAttribute("Name", "详细信息");
                trhtmtm2.AppendChild(tablixMemberGroup);
                #endregion


                //第二层----tableTop
                XmlElement tableTop = sourceDoc.CreateElement("Top", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableTop.InnerText = "30cm";
                tableInfo.AppendChild(tableTop);
                //第二层----tableLeft 
                XmlElement tableLeft = sourceDoc.CreateElement("Left", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableLeft.InnerText = "1.52612cm";
                tableInfo.AppendChild(tableLeft);
                //第二层----tableHeight
                XmlElement tableHeight = sourceDoc.CreateElement("Height", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableHeight.InnerText = "1.2cm";
                tableInfo.AppendChild(tableHeight);
                //第二层----tableWidth
                XmlElement tableWidth = sourceDoc.CreateElement("Width", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableWidth.InnerText = "14.98388cm";
                tableInfo.AppendChild(tableWidth);
                //第二层----tableStyle
                XmlElement tableStyle = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableInfo.AppendChild(tableStyle);
                //第三层----tableStyle----styleBorder
                XmlElement styleBorder = sourceDoc.CreateElement("Border", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                tableStyle.AppendChild(styleBorder);
                //第四层----tableStyle----styleBorder----borderStyle
                XmlElement borderStyle = sourceDoc.CreateElement("Style", "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition");
                borderStyle.InnerText = "None";
                styleBorder.AppendChild(borderStyle);
                #region MyRegion


                //#region 封装两条以上的报关单信息
                //StringBuilder builder = new StringBuilder();
                //builder.AppendLine("<TablixBody>");

                //builder.AppendLine("<TablixColumns>");
                //builder.AppendLine("<TablixColumn>");
                //builder.AppendLine("<Width>1.65289in</Width>");
                //builder.AppendLine("</TablixColumn>");
                //builder.AppendLine("<TablixColumn>");
                //builder.AppendLine("<Width>2.13356in</Width>");
                //builder.AppendLine("</TablixColumn>");
                //builder.AppendLine("<TablixColumn>");
                //builder.AppendLine("<Width>2.11272in</Width>");
                //builder.AppendLine("</TablixColumn>");
                //builder.AppendLine("</TablixColumns>");

                //builder.AppendLine("<TablixRows>");
                //builder.AppendLine("<TablixRow>");
                //builder.AppendLine("<Height>0.23622in</Height>");
                //builder.AppendLine("<TablixCells>");
                //builder.AppendLine("<TablixCell>");
                //builder.AppendLine("<CellContents>");
                //builder.AppendLine("<Textbox Name=\"txt_报关单号_title\">");
                //builder.AppendLine("<CanGrow>true</CanGrow>");
                //builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //builder.AppendLine("<Paragraphs>");
                //builder.AppendLine("<Paragraph>");
                //builder.AppendLine("<TextRuns>");
                //builder.AppendLine("<TextRun>");
                //builder.AppendLine("<Value>报关单号</Value>");
                //builder.AppendLine("<Style />");
                //builder.AppendLine("</TextRun>");
                //builder.AppendLine("</TextRuns>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<TextAlign>Center</TextAlign>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Paragraph>");
                //builder.AppendLine("</Paragraphs>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<Border>");
                //builder.AppendLine("<Color>LightGrey</Color>");
                //builder.AppendLine("<Style>Solid</Style>");
                //builder.AppendLine("</Border>");
                //builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Textbox>");
                //builder.AppendLine("</CellContents>");
                //builder.AppendLine("</TablixCell>");
                //builder.AppendLine("<TablixCell>");
                //builder.AppendLine("<CellContents>");
                //builder.AppendLine("<Textbox Name=\"txt_报关单币种及总金额_title\">");
                //builder.AppendLine("<CanGrow>true</CanGrow>");
                //builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //builder.AppendLine("<Paragraphs>");
                //builder.AppendLine("<Paragraph>");
                //builder.AppendLine("<TextRuns>");
                //builder.AppendLine("<TextRun>");
                //builder.AppendLine("<Value>报关单币种及总金额</Value>");
                //builder.AppendLine("<Style />");
                //builder.AppendLine("</TextRun>");
                //builder.AppendLine("</TextRuns>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<TextAlign>Center</TextAlign>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Paragraph>");
                //builder.AppendLine("</Paragraphs>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<Border>");
                //builder.AppendLine("<Color>LightGrey</Color>");
                //builder.AppendLine("<Style>Solid</Style>");
                //builder.AppendLine("</Border>");
                //builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Textbox>");
                //builder.AppendLine("</CellContents>");
                //builder.AppendLine("</TablixCell>");
                //builder.AppendLine("<TablixCell>");
                //builder.AppendLine("<CellContents>");
                //builder.AppendLine("<Textbox Name=\"txt_本次核注金额_title\">");
                //builder.AppendLine("<CanGrow>true</CanGrow>");
                //builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //builder.AppendLine("<Paragraphs>");
                //builder.AppendLine("<Paragraph>");
                //builder.AppendLine("<TextRuns>");
                //builder.AppendLine("<TextRun>");
                //builder.AppendLine("<Value>本次核注金额</Value>");
                //builder.AppendLine("<Style />");
                //builder.AppendLine("</TextRun>");
                //builder.AppendLine("</TextRuns>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<TextAlign>Center</TextAlign>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Paragraph>");
                //builder.AppendLine("</Paragraphs>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<Border>");
                //builder.AppendLine("<Color>LightGrey</Color>");
                //builder.AppendLine("<Style>Solid</Style>");
                //builder.AppendLine("</Border>");
                //builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //builder.AppendLine("</Style>");
                //builder.AppendLine("</Textbox>");
                //builder.AppendLine("</CellContents>");
                //builder.AppendLine("</TablixCell>");
                //builder.AppendLine("</TablixCells>");
                //builder.AppendLine("</TablixRow>");
                //for (int i = 0; i < 10; i++)
                //{
                //    builder.AppendLine("<TablixRow>");
                //    builder.AppendLine("<Height>0.23622in</Height>");
                //    builder.AppendLine("<TablixCells>");
                //    builder.AppendLine("<TablixCell>");
                //    builder.AppendLine("<CellContents>");
                //    builder.AppendLine("<Textbox Name=\"txt_报关单号_table" + i + "\">");
                //    builder.AppendLine("<CanGrow>true</CanGrow>");
                //    builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //    builder.AppendLine("<Paragraphs>");
                //    builder.AppendLine("<Paragraph> ");
                //    builder.AppendLine("<TextRuns>");
                //    builder.AppendLine("<TextRun>");
                //    builder.Append("<Value>");
                //    builder.Append("123");
                //    builder.AppendLine("</Value>");
                //    builder.AppendLine("<Style />");
                //    builder.AppendLine("</TextRun>");
                //    builder.AppendLine("</TextRuns>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<TextAlign>Center</TextAlign>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Paragraph>");
                //    builder.AppendLine("</Paragraphs>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<Border>");
                //    builder.AppendLine("<Color>LightGrey</Color>");
                //    builder.AppendLine("<Style>Solid</Style>");
                //    builder.AppendLine("</Border>");
                //    builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //    builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //    builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //    builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //    builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Textbox>");
                //    builder.AppendLine("</CellContents>");
                //    builder.AppendLine("</TablixCell>");
                //    builder.AppendLine("<TablixCell>");
                //    builder.AppendLine("<CellContents>");
                //    builder.AppendLine("<Textbox Name=\"txt_报关单币种及总金额_table" + i + "\">");
                //    builder.AppendLine("<CanGrow>true</CanGrow>");
                //    builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //    builder.AppendLine("<Paragraphs>");
                //    builder.AppendLine("<Paragraph> ");
                //    builder.AppendLine("<TextRuns>");
                //    builder.AppendLine("<TextRun>");
                //    builder.Append("<Value>");
                //    builder.Append("123");
                //    builder.AppendLine("</Value>");
                //    builder.AppendLine("<Style />");
                //    builder.AppendLine("</TextRun>");
                //    builder.AppendLine("</TextRuns>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<TextAlign>Center</TextAlign>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Paragraph>");
                //    builder.AppendLine("</Paragraphs>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<Border>");
                //    builder.AppendLine("<Color>LightGrey</Color>");
                //    builder.AppendLine("<Style>Solid</Style>");
                //    builder.AppendLine("</Border>");
                //    builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //    builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //    builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //    builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //    builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Textbox>");
                //    builder.AppendLine("</CellContents>");
                //    builder.AppendLine("</TablixCell>");
                //    builder.AppendLine("<TablixCell>");
                //    builder.AppendLine("<CellContents>");
                //    builder.AppendLine("<Textbox Name=\"txt_本次核注金额_table" + i + "\">");
                //    builder.AppendLine("<CanGrow>true</CanGrow>");
                //    builder.AppendLine("<KeepTogether>true</KeepTogether>");
                //    builder.AppendLine("<Paragraphs>");
                //    builder.AppendLine("<Paragraph> ");
                //    builder.AppendLine("<TextRuns>");
                //    builder.AppendLine("<TextRun>");
                //    builder.Append("<Value>");
                //    builder.Append("123");
                //    builder.AppendLine("</Value>");
                //    builder.AppendLine("<Style />");
                //    builder.AppendLine("</TextRun>");
                //    builder.AppendLine("</TextRuns>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<TextAlign>Center</TextAlign>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Paragraph>");
                //    builder.AppendLine("</Paragraphs>");
                //    builder.AppendLine("<Style>");
                //    builder.AppendLine("<Border>");
                //    builder.AppendLine("<Color>LightGrey</Color>");
                //    builder.AppendLine("<Style>Solid</Style>");
                //    builder.AppendLine("</Border>");
                //    builder.AppendLine("<VerticalAlign>Middle</VerticalAlign>");
                //    builder.AppendLine("<PaddingLeft>0pt</PaddingLeft>");
                //    builder.AppendLine("<PaddingRight>0pt</PaddingRight>");
                //    builder.AppendLine("<PaddingTop>0pt</PaddingTop>");
                //    builder.AppendLine("<PaddingBottom>0pt</PaddingBottom>");
                //    builder.AppendLine("</Style>");
                //    builder.AppendLine("</Textbox>");
                //    builder.AppendLine("</CellContents>");
                //    builder.AppendLine("</TablixCell>");
                //    builder.AppendLine("</TablixCells>");
                //    builder.AppendLine("</TablixRow>");
                //}

                //builder.AppendLine("</TablixRows>");


                //builder.AppendLine("</TablixBody>");
                //builder.AppendLine("<TablixColumnHierarchy>");
                //builder.AppendLine("<TablixMembers>");
                //builder.AppendLine("<TablixMember />");
                //builder.AppendLine("<TablixMember />");
                //builder.AppendLine("<TablixMember />");
                //builder.AppendLine("</TablixMembers>");
                //builder.AppendLine("</TablixColumnHierarchy>");
                //builder.AppendLine("<TablixRowHierarchy>");
                //builder.AppendLine("<TablixMembers>");
                //builder.AppendLine("<TablixMember>");
                //builder.AppendLine("<KeepWithGroup>After</KeepWithGroup>");
                //builder.AppendLine("</TablixMember>");
                //builder.AppendLine("<TablixMember>");
                //builder.AppendLine("<Group Name=\"详细信息\" />");
                //builder.AppendLine("</TablixMember>");
                //builder.AppendLine("</TablixMembers>");
                //builder.AppendLine("</TablixRowHierarchy>");
                //builder.AppendLine("<Top>30cm</Top>");
                //builder.AppendLine("<Left>3cm</Left>");
                //builder.AppendLine("<Height>1.2cm</Height>");
                //builder.AppendLine("<Width>14.98388cm</Width>");
                //builder.AppendLine("<Style>");
                //builder.AppendLine("<Border>");
                //builder.AppendLine("<Style>None</Style>");
                //builder.AppendLine("</Border>");
                //builder.AppendLine("</Style>");
                //#endregion

                #endregion

                //tableInfo.InnerXml = builder.ToString();
                reportItem.AppendChild(tableInfo);
            }
            #endregion
            
            #endregion

            #region 申请人姓名
            XmlNode txt_申请人姓名 = reportItem.ChildNodes.Item(56);
            XmlNode value_申请人姓名 = txt_申请人姓名.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_申请人姓名.InnerText = info.ApplicantName;
            #endregion

            #region 申请人电话
            XmlNode txt_申请人电话 = reportItem.ChildNodes.Item(57);
            XmlNode value_申请人电话 = txt_申请人电话.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_申请人电话.InnerText = info.ApplicantPhone;
            #endregion

            #region 对私
            XmlNode txt_对私 = reportItem.ChildNodes.Item(58);
            XmlNode value_对私 = txt_对私.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_对私.InnerText = info.TransferProperties == "对私" ? "√" : " ";
            #endregion

            #region 中国居民个人
            XmlNode txt_中国居民个人 = reportItem.ChildNodes.Item(59);
            XmlNode value_中国居民个人 = txt_中国居民个人.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_中国居民个人.InnerText = info.PrivateType == "中国居民个人" ? "√" : " ";
            #endregion

            #region 中国非居民个人
            XmlNode txt_中国非居民个人 = reportItem.ChildNodes.Item(60);
            XmlNode value_中国非居民个人 = txt_中国非居民个人.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_中国非居民个人.InnerText = info.PrivateType == "中国非居民个人" ? "√" : " ";
            #endregion

            #region 个人身份证件号码
            XmlNode txt_个人身份证件号码 = reportItem.ChildNodes.Item(61);
            XmlNode value_个人身份证件号码 = txt_个人身份证件号码.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_个人身份证件号码.InnerText = info.PrivateID;
            #endregion

            #region 组织机构代码1
            XmlNode txt_组织机构代码1 = reportItem.ChildNodes.Item(62);
            XmlNode value_组织机构代码1 = txt_组织机构代码1.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码1.InnerText = info.SenderOrganizationCode.Substring(0,1);
            #endregion

            #region 组织机构代码2
            XmlNode txt_组织机构代码2 = reportItem.ChildNodes.Item(63);
            XmlNode value_组织机构代码2 = txt_组织机构代码2.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码2.InnerText = info.SenderOrganizationCode.Substring(1, 1);
            #endregion

            #region 组织机构代码3
            XmlNode txt_组织机构代码3 = reportItem.ChildNodes.Item(64);
            XmlNode value_组织机构代码3 = txt_组织机构代码3.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码3.InnerText = info.SenderOrganizationCode.Substring(2, 1);
            #endregion

            #region 组织机构代码4
            XmlNode txt_组织机构代码4 = reportItem.ChildNodes.Item(65);
            XmlNode value_组织机构代码4 = txt_组织机构代码4.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码4.InnerText = info.SenderOrganizationCode.Substring(3, 1);
            #endregion

            #region 组织机构代码5
            XmlNode txt_组织机构代码5 = reportItem.ChildNodes.Item(66);
            XmlNode value_组织机构代码5 = txt_组织机构代码5.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码5.InnerText = info.SenderOrganizationCode.Substring(4, 1);
            #endregion

            #region 组织机构代码6
            XmlNode txt_组织机构代码6 = reportItem.ChildNodes.Item(67);
            XmlNode value_组织机构代码6 = txt_组织机构代码6.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码6.InnerText = info.SenderOrganizationCode.Substring(5, 1);
            #endregion

            #region 组织机构代码7
            XmlNode txt_组织机构代码7 = reportItem.ChildNodes.Item(68);
            XmlNode value_组织机构代码7 = txt_组织机构代码7.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码7.InnerText = info.SenderOrganizationCode.Substring(6, 1);
            #endregion

            #region 组织机构代码8
            XmlNode txt_组织机构代码8 = reportItem.ChildNodes.Item(69);
            XmlNode value_组织机构代码8 = txt_组织机构代码8.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码8.InnerText = info.SenderOrganizationCode.Substring(7, 1);
            #endregion

            #region 组织机构代码9
            XmlNode txt_组织机构代码9 = reportItem.ChildNodes.Item(70);
            XmlNode value_组织机构代码9 = txt_组织机构代码9.ChildNodes.Item(2).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0).ChildNodes.Item(0);
            value_组织机构代码9.InnerText = info.SenderOrganizationCode.Substring(8, 1);
            #endregion


            sourceDoc.Save(AppDomain.CurrentDomain.BaseDirectory + "PrintDoc\\Bank\\OverseasRemittance1.rdlc");

            MemoryStream ms = new MemoryStream();
            XmlSerializer serializer = new XmlSerializer(typeof(XmlDocument));
            serializer.Serialize(ms, sourceDoc);
            ms.Position = 0;
            return ms;
        }
    }

}